import request from "@/utils/request";

export const uploadImgAPI = async (data) => {
  const formData = new FormData();
  formData.append("file", data);
  return await request.post("/api/upload", formData, {
    headers: {
      "Content-Type": "multipart/form-data",
    },
  });
};
